execute if entity @s[scores={SeGa_DVInv0=00}] run item replace entity @s hotbar.0 with wooden_sword{Unbreakable:1,AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:5.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=10}] run item replace entity @s hotbar.0 with stone_sword{Unbreakable:1,AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:6.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=20}] run item replace entity @s hotbar.0 with iron_sword{Unbreakable:1,AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:7.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=30}] run item replace entity @s hotbar.0 with golden_sword{Unbreakable:1,AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:8.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=40}] run item replace entity @s hotbar.0 with diamond_sword{Unbreakable:1,AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:9.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=50}] run item replace entity @s hotbar.0 with netherite_sword{Unbreakable:1,AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:10.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=01}] run item replace entity @s hotbar.0 with wooden_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:1}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:6.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=11}] run item replace entity @s hotbar.0 with stone_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:1}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:7.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=21}] run item replace entity @s hotbar.0 with iron_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:1}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:8.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=31}] run item replace entity @s hotbar.0 with golden_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:1}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:9.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=41}] run item replace entity @s hotbar.0 with diamond_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:1}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:10.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=51}] run item replace entity @s hotbar.0 with netherite_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:1}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:11.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=02}] run item replace entity @s hotbar.0 with wooden_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:2}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:7.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=12}] run item replace entity @s hotbar.0 with stone_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:2}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:8.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=22}] run item replace entity @s hotbar.0 with iron_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:2}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:9.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=32}] run item replace entity @s hotbar.0 with golden_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:2}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:10.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=42}] run item replace entity @s hotbar.0 with diamond_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:1}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:11.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=52}] run item replace entity @s hotbar.0 with netherite_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:1}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:12.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=03}] run item replace entity @s hotbar.0 with wooden_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:3}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:8.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=13}] run item replace entity @s hotbar.0 with stone_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:3}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:9.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=23}] run item replace entity @s hotbar.0 with iron_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:3}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:10.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=33}] run item replace entity @s hotbar.0 with golden_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:3}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:11.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=43}] run item replace entity @s hotbar.0 with diamond_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:1}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:12.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv0=53}] run item replace entity @s hotbar.0 with netherite_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:1}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Amount:180.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"},{AttributeName:"generic.attack_damage",Amount:13.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
#,Lore:["{\"italic\":false,\"color\":\"gray\",\"text\":\"\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv23=0}] if score @s Temp_PersonDVS matches 5.. if block ~ ~1 ~ tripwire_hook run item replace entity @s hotbar.1 with crossbow{display:{Name:"{\"italic\":false,\"color\":\"blue\",\"text\":\"机械弩\"}"},Unbreakable:1,ChargedProjectiles:[{id:"minecraft:arrow",Count:1b}],Charged:true}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv23=0}] if score @s Temp_PersonDVS matches ..4 if block ~ ~1 ~ tripwire_hook run item replace entity @s hotbar.1 with gunpowder{display:{Name:"{\"italic\":false,\"color\":\"blue\",\"text\":\"机械弩 （弹药不足）\"}"}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv23=1}] if score @s Temp_PersonDVS matches 4.. if block ~ ~1 ~ tripwire_hook run item replace entity @s hotbar.1 with crossbow{display:{Name:"{\"italic\":false,\"color\":\"blue\",\"text\":\"机械弩\"}"},Unbreakable:1,ChargedProjectiles:[{id:"minecraft:arrow",Count:1b}],Charged:true}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv23=1}] if score @s Temp_PersonDVS matches ..3 if block ~ ~1 ~ tripwire_hook run item replace entity @s hotbar.1 with gunpowder{display:{Name:"{\"italic\":false,\"color\":\"blue\",\"text\":\"机械弩 （弹药不足）\"}"}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv23=2}] if score @s Temp_PersonDVS matches 3.. if block ~ ~1 ~ tripwire_hook run item replace entity @s hotbar.1 with crossbow{display:{Name:"{\"italic\":false,\"color\":\"blue\",\"text\":\"机械弩\"}"},Unbreakable:1,ChargedProjectiles:[{id:"minecraft:arrow",Count:1b}],Charged:true}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv23=2}] if score @s Temp_PersonDVS matches ..2 if block ~ ~1 ~ tripwire_hook run item replace entity @s hotbar.1 with gunpowder{display:{Name:"{\"italic\":false,\"color\":\"blue\",\"text\":\"机械弩 （弹药不足）\"}"}}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=00}] run item replace entity @s hotbar.1 with bow{Unbreakable:1}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=10}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:1}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=20}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:2}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=30}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:3}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=40}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:4}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=50}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:5}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=01}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:flame,lvl:2}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=11}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:1},{id:flame,lvl:2}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=21}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:2},{id:flame,lvl:2}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=31}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:3},{id:flame,lvl:2}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=41}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:4},{id:flame,lvl:2}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=51}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:5},{id:flame,lvl:2}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=02}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:flame,lvl:4}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=12}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:1},{id:flame,lvl:4}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=22}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:2},{id:flame,lvl:4}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=32}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:3},{id:flame,lvl:4}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=42}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:4},{id:flame,lvl:4}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=52}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:5},{id:flame,lvl:4}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=03}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:flame,lvl:6}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=13}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:1},{id:flame,lvl:6}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=23}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:2},{id:flame,lvl:6}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=33}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:3},{id:flame,lvl:6}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=43}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:4},{id:flame,lvl:6}]}
execute unless block ~ ~1 ~ tripwire_hook if entity @s[scores={SeGa_DVInv1=53}] run item replace entity @s hotbar.1 with bow{Unbreakable:1,Enchantments:[{id:power,lvl:5},{id:flame,lvl:6}]}
execute if entity @s[scores={SeGa_DVInv2=40..,SeGa_DVInv11=0}] run item replace entity @s hotbar.2 with brick{display:{Name:"{\"italic\":false,\"color\":\"white\",\"text\":\"板砖\"}"},AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:15.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv2=40..,SeGa_DVInv11=1}] run item replace entity @s hotbar.2 with brick{display:{Name:"{\"italic\":false,\"color\":\"white\",\"text\":\"板砖\"}"},AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:25.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv2=40..,SeGa_DVInv11=2}] run item replace entity @s hotbar.2 with brick{display:{Name:"{\"italic\":false,\"color\":\"white\",\"text\":\"板砖\"}"},AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:35.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv2=40..,SeGa_DVInv11=3}] run item replace entity @s hotbar.2 with brick{display:{Name:"{\"italic\":false,\"color\":\"white\",\"text\":\"板砖\"}"},AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:45.0,Operation:0,UUID:[I;85300,1,1,1],Slot:"mainhand"}]}
execute if entity @s[scores={SeGa_DVInv2=-1..39}] run item replace entity @s hotbar.2 with netherite_ingot{display:{Name:"{\"italic\":false,\"color\":\"white\",\"text\":\"板砖 - 蓄力中\"}"},AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:2.0,Operation:0,UUID:[I;85300,1,1,2],Slot:"mainhand"}]}

execute if entity @s[scores={SeGa_DVInv2=37,SeGa_DVInv20=1}] run scoreboard players add @s SeGa_DVInv2 2
execute if entity @s[scores={SeGa_DVInv2=34,SeGa_DVInv20=2}] run scoreboard players add @s SeGa_DVInv2 2
execute if entity @s[scores={SeGa_DVInv2=31,SeGa_DVInv20=3}] run scoreboard players add @s SeGa_DVInv2 2
execute if entity @s[scores={SeGa_DVInv2=28,SeGa_DVInv20=4}] run scoreboard players add @s SeGa_DVInv2 2
execute if entity @s[scores={SeGa_DVInv2=25,SeGa_DVInv20=5}] run scoreboard players add @s SeGa_DVInv2 2

execute if entity @s[scores={SeGa_DVInv12=1}] run item replace entity @s armor.head with leather_helmet
execute if entity @s[scores={SeGa_DVInv12=1}] run item replace entity @s armor.chest with leather_chestplate
execute if entity @s[scores={SeGa_DVInv12=2}] run item replace entity @s armor.head with chainmail_helmet
execute if entity @s[scores={SeGa_DVInv12=2}] run item replace entity @s armor.chest with chainmail_chestplate
execute if entity @s[scores={SeGa_DVInv12=3}] run item replace entity @s armor.head with iron_helmet
execute if entity @s[scores={SeGa_DVInv12=3}] run item replace entity @s armor.chest with iron_chestplate
execute if entity @s[scores={SeGa_DVInv13=1}] run item replace entity @s armor.legs with leather_leggings
execute if entity @s[scores={SeGa_DVInv13=1}] run item replace entity @s armor.feet with leather_boots
execute if entity @s[scores={SeGa_DVInv13=2}] run item replace entity @s armor.legs with chainmail_leggings
execute if entity @s[scores={SeGa_DVInv13=2}] run item replace entity @s armor.feet with chainmail_boots
execute if entity @s[scores={SeGa_DVInv13=3}] run item replace entity @s armor.legs with iron_leggings
execute if entity @s[scores={SeGa_DVInv13=3}] run item replace entity @s armor.feet with iron_boots

item replace entity @s hotbar.3 with structure_void
item replace entity @s hotbar.4 with structure_void
item replace entity @s hotbar.5 with structure_void
item replace entity @s inventory.12 with structure_void
item replace entity @s inventory.13 with structure_void

item replace entity @s weapon.offhand with air

item replace entity @s inventory.7 with barrier
item replace entity @s inventory.16 with barrier
item replace entity @s inventory.25 with barrier

execute if entity @s[scores={SeGa_DVInv6=10..11},nbt=!{Inventory:[{Slot:6b,id:"minecraft:bread"}]}] run scoreboard players set @s SeGa_DVInv6 12
execute if entity @s[scores={SeGa_DVInv6=12..13},nbt=!{Inventory:[{Slot:6b,id:"minecraft:bread"}]}] run item replace entity @s hotbar.6 with bread
execute if entity @s[scores={SeGa_DVInv6=12..13}] run scoreboard players set @s SeGa_DVInv6 0
execute if entity @s[scores={SeGa_DVInv6=10..11},nbt=!{Inventory:[{Slot:7b,id:"minecraft:bread"}]}] run scoreboard players set @s SeGa_DVInv6 12
execute if entity @s[scores={SeGa_DVInv6=12..13},nbt=!{Inventory:[{Slot:7b,id:"minecraft:bread"}]}] run item replace entity @s hotbar.7 with bread
execute if entity @s[scores={SeGa_DVInv6=12..13}] run scoreboard players set @s SeGa_DVInv6 0
execute if entity @s[scores={SeGa_DVInv6=10..11},nbt=!{Inventory:[{Slot:8b,id:"minecraft:bread"}]}] run scoreboard players set @s SeGa_DVInv6 12
execute if entity @s[scores={SeGa_DVInv6=12..13},nbt=!{Inventory:[{Slot:8b,id:"minecraft:bread"}]}] run item replace entity @s hotbar.8 with bread
execute if entity @s[scores={SeGa_DVInv6=12..13}] run scoreboard players set @s SeGa_DVInv6 0
execute if entity @s[scores={SeGa_DVInv6=-1..9},nbt=!{Inventory:[{Slot:6b,id:"minecraft:bread"}]}] run item replace entity @s hotbar.6 with wheat
execute if entity @s[scores={SeGa_DVInv6=-1..9},nbt=!{Inventory:[{Slot:7b,id:"minecraft:bread"}]}] run item replace entity @s hotbar.7 with wheat
execute if entity @s[scores={SeGa_DVInv6=-1..9},nbt=!{Inventory:[{Slot:8b,id:"minecraft:bread"}]}] run item replace entity @s hotbar.8 with wheat


execute if entity @s[scores={SeGa_DVInv0=00..09}] run item replace entity @s inventory.0 with anvil{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"石器研发\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"500绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"将剑提升1个等级\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv0=10..19}] run item replace entity @s inventory.0 with anvil{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"锻造工艺\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"3000绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"将剑提升1个等级\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv0=20..29}] run item replace entity @s inventory.0 with anvil{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"昂贵科技\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"8000绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"将剑提升1个等级\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv0=30..39}] run item replace entity @s inventory.0 with anvil{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"工业艺术\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"10000绿宝石 20钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"将剑提升1个等级\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv0=40..49}] run item replace entity @s inventory.0 with anvil{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"千古神器\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"30000绿宝石 50钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"将剑提升1个等级\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv0=50..59}] run item replace entity @s inventory.0 with structure_void{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"gray\",\"text\":\"[满级]\"}"}}

execute if entity @s[scores={SeGa_DVInv1=00..09}] run item replace entity @s inventory.1 with lead{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"弓弦加固\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"300绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"将弓的力量提升1级\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv1=10..19}] run item replace entity @s inventory.1 with lead{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"腕距测定\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"1500绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"将弓的力量提升1级\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv1=20..29}] run item replace entity @s inventory.1 with lead{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"坚韧弦线\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"4000绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"将弓的力量提升1级\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv1=30..39}] run item replace entity @s inventory.1 with lead{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"合成机械\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"8000绿宝石 20钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"将弓的力量提升1级\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv1=40..49}] run item replace entity @s inventory.1 with lead{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"杀戮专精\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"15000绿宝石 50钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"将弓的力量提升1级\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv1=50..59}] run item replace entity @s inventory.1 with structure_void{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"gray\",\"text\":\"[满级]\"}"}}

execute if entity @s[scores={SeGa_DVInv11=0}] run item replace entity @s inventory.2 with iron_ingot{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"固化砖块\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"500绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"将砖块的攻击力提升1级\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv11=1}] run item replace entity @s inventory.2 with iron_ingot{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"超硬砖块\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"2000绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"将砖块的攻击力提升1级\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv11=2}] run item replace entity @s inventory.2 with iron_ingot{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"砖衣包铁\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"5000绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"将砖块的攻击力提升1级\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}

execute if entity @s[scores={SeGa_DVInv12=0}] run item replace entity @s inventory.3 with leather{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"皮革装甲\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"500绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"获得上半身用皮革防具\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv12=1}] run item replace entity @s inventory.3 with leather{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"锁链缠织\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"2300绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"升级上半身为锁链防具\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv12=2}] run item replace entity @s inventory.3 with leather{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"钢铁甲胄\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"4600绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"升级上半身为铁质防具\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}

execute if entity @s[scores={SeGa_DVInv13=0}] run item replace entity @s inventory.4 with rabbit_hide{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"远行装备\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"300绿宝石 3钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"获得下半身用皮革防具\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv13=1}] run item replace entity @s inventory.4 with rabbit_hide{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"负重训练\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"1800绿宝石 5钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"升级下半身为锁链防具\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv13=2}] run item replace entity @s inventory.4 with rabbit_hide{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"精钢防护\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"4000绿宝石 8钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"升级下半身为铁质防具\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}

execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv14=0}] run item replace entity @s inventory.5 with soul_campfire{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"灵魂火苗\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"100绿宝石 1钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"中场倒计时期间\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"亭主每秒将有2%的概率 获得持续5秒的生命恢复\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv14=1}] run item replace entity @s inventory.5 with soul_campfire{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"灵魂火苗+\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"500绿宝石 3钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"亭主每秒获得5秒生命恢复的概率+2%\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv14=2}] run item replace entity @s inventory.5 with soul_campfire{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"灵魂火苗++\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"1000绿宝石 3钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"亭主每秒获得5秒生命恢复的概率+2%\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv14=3}] run item replace entity @s inventory.5 with soul_campfire{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"灵魂烈焰\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"1500绿宝石 3钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"亭主每秒获得生命恢复的概率+2%\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"恢复时长+2秒\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv14=4}] run item replace entity @s inventory.5 with soul_campfire{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"灵魂烈焰+\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"2500绿宝石 3钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"亭主每秒获得7秒生命恢复的概率+2%\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv14=5}] run item replace entity @s inventory.5 with soul_campfire{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"灵魂烈焰++\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"4500绿宝石 5钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"亭主每秒获得7秒生命恢复的概率+2%\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv14=6}] run item replace entity @s inventory.5 with soul_campfire{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"灵魂爆炎\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"5000绿宝石 10钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"亭主每秒获得7秒生命恢复的概率+2%\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}

execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv23=0}] run item replace entity @s inventory.14 with repeater{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"节省弹药\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"6000绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"机械弩的弹药价格-1\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv23=1}] run item replace entity @s inventory.14 with repeater{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"再生构筑\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"12000绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"机械弩的弹药价格-1\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv23=2}] run item replace entity @s inventory.14 with structure_void{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"gray\",\"text\":\"[满级]\"}"}}

execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv15=0}] run item replace entity @s inventory.6 with wither_rose{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"护法磁场\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"10钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的敌人将获得凋零状态\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"凋零等级： lv1 | 范围： lv1\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv15=1}] run item replace entity @s inventory.6 with wither_rose{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"护法磁场+\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"25钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的敌人将获得凋零状态\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"凋零等级： lv1 | 范围： lv2\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv15=2}] run item replace entity @s inventory.6 with wither_rose{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"护法磁场++\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"45钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的敌人将获得凋零状态\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"凋零等级： lv2 | 范围： lv2\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv15=3}] run item replace entity @s inventory.6 with wither_rose{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"贞洁荣光\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"75钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的敌人将获得凋零状态\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"凋零等级： lv2 | 范围： lv3\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv15=4}] run item replace entity @s inventory.6 with wither_rose{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"贞洁荣光+\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"100钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的敌人将获得凋零状态\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"凋零等级： lv3 | 范围： lv3\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv15=5}] run item replace entity @s inventory.6 with wither_rose{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"贞洁荣光++\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"200钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的敌人将获得凋零状态\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"凋零等级： lv3 | 范围： lv4\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv15=6}] run item replace entity @s inventory.6 with wither_rose{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"神祝天亭\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"400钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的敌人将获得凋零状态\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"凋零等级： lv4 | 范围： lv4\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}

execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv24=0}] run item replace entity @s inventory.15 with beacon{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"共鸣空间\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"8钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的玩家 移动速度提升\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"速度等级： lv1 | 范围： lv1\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv24=1}] run item replace entity @s inventory.15 with beacon{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"共鸣空间+\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"16钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的玩家 移动速度提升\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"速度等级： lv1 | 范围： lv2\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv24=2}] run item replace entity @s inventory.15 with beacon{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"共鸣空间++\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"24钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的玩家 移动速度提升\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"速度等级： lv2 | 范围： lv2\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv24=3}] run item replace entity @s inventory.15 with beacon{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"夙愿荣光\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"32钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的玩家 移动速度提升\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"速度等级： lv2 | 范围： lv3\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv24=4}] run item replace entity @s inventory.15 with beacon{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"夙愿荣光+\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"40钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的玩家 移动速度提升\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"速度等级： lv3 | 范围： lv3\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv24=5}] run item replace entity @s inventory.15 with beacon{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"夙愿荣光++\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"60钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的玩家 移动速度提升\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"速度等级： lv3 | 范围： lv4\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @e[tag=sc,limit=1,scores={SeGa_DVInv24=6}] run item replace entity @s inventory.15 with beacon{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"神塑定理\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"80钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"接近亭主的玩家 移动速度提升\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"速度等级： lv4 | 范围： lv4\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}

execute if entity @s[scores={SeGa_DVInv18=0}] run item replace entity @s inventory.9 with blaze_powder{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"业火合成\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"15钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"剑获得锋利I附魔\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv18=1}] run item replace entity @s inventory.9 with blaze_powder{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"业火炽炼\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"40钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"剑获得锋利II附魔\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv18=2}] run item replace entity @s inventory.9 with blaze_powder{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"业火融合\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"80钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"剑获得锋利III附魔\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}

execute if entity @s[scores={SeGa_DVInv19=0}] run item replace entity @s inventory.10 with flint_and_steel{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"烈焰附加\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"5000绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"弓获得火矢II附魔\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv19=1}] run item replace entity @s inventory.10 with flint_and_steel{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"烈焰重生\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"10000绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"弓获得火矢IV附魔\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv19=2}] run item replace entity @s inventory.10 with flint_and_steel{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"凤凰羽箭\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"30000绿宝石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"弓获得火矢VI附魔\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv19=3}] run item replace entity @s inventory.10 with structure_void{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"gray\",\"text\":\"[满级]\"}"}}

execute if entity @s[scores={SeGa_DVInv20=0}] run item replace entity @s inventory.11 with nether_brick{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"轻羽挥舞\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"8钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"砖块冷却时间-2秒\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv20=1}] run item replace entity @s inventory.11 with nether_brick{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"虚质内在\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"16钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"砖块冷却时间-2秒\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv20=2}] run item replace entity @s inventory.11 with nether_brick{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"炼狱碎裂\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"28钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"砖块冷却时间-2秒\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv20=3}] run item replace entity @s inventory.11 with nether_brick{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"凶染狱石\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"48钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"砖块冷却时间-2秒\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}
execute if entity @s[scores={SeGa_DVInv20=4}] run item replace entity @s inventory.11 with nether_brick{display:{Name:"{\"bold\":false,\"italic\":false,\"color\":\"light_purple\",\"text\":\"狂狱碎笼\"}",Lore:["{\"italic\":false,\"color\":\"yellow\",\"text\":\"80钻石\"}","{\"italic\":false,\"color\":\"white\",\"text\":\"砖块冷却时间-2秒\"}","{\"italic\":false,\"color\":\"green\",\"text\":\"按下Q以升级\"}"]}}

item replace entity @s inventory.8 with arrow 16